﻿using SCM.Common;
using SqlSugar;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// 组件明细表
    /// </summary>
    [SugarTable("T_Material_SubProductDtl")]
    public class T_Material_SubProductDtl
    {
        /// <summary>
        /// 组件明细ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 组件ID
        /// </summary>
        public string MaterialSubProductID { get; set; }

        /// <summary>
        /// 零件ID
        /// </summary>
        public string MaterialPartsID { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        public DataStatusEnum DataStatus { get; set; } = DataStatusEnum.Valid;

        /// <summary>
        /// 数据状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string DataStatusStr { get { return EnumHelper.GetDescription(DataStatus); } }
    }
}